package com.qimo.service;

import com.qimo.model.HistoryOrder;
import com.qimo.model.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderService {
    int createOrder(Order order);
    List<Order>  selectOrderList(Integer userId,Integer orderId,Integer Page);
    int selectOrderListCount(int userId);
    boolean cancelOrder(int orderId,int userId);
    boolean completeOrder(int orderId, int userId);
    List<HistoryOrder> selectHistoryOrderList(Integer userId,Integer Page);
    int selectHistoryOrderListCount(int userId);
    int delHistoryOrder(int historyOrderId,int userId);
}
